<script type="text/javascript" src="__PUBLIC__/js/plugin/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/plugin/ueditor/ueditor.all.js"></script>

<link rel="stylesheet" href="__PUBLIC__/js/plugin/ueditor/themes/default/css/ueditor.min.css"/>
<section >
	<label class="label">{:L($name)}：</label>
	<label class="input">
		<i class="icon-append fa fa-tag"></i>
		 <input type="text" name="{$name}"  id="startdate" placeholder="Expected start date" value="{$value}">

	</label>
</section>
<script type="text/javascript">
    var _uploadUrl = "{:U('/Home/Upload/upload')}";
    loadScript("__PUBLIC__/js/plugin/jquery-form/jquery-form.min.js", runFormValidation);
    function runFormValidation() {
        $('#startdate').datepicker({
            dateFormat : 'yy-mm-dd',
            prevText : '<i class="fa fa-chevron-left"></i>',
            nextText : '<i class="fa fa-chevron-right"></i>',
            onSelect : function(selectedDate) {
                $('#finishdate').datepicker('option', 'minDate', selectedDate);
            }
        });

        $('#finishdate').datepicker({
            dateFormat : 'yy-mm-dd',
            prevText : '<i class="fa fa-chevron-left"></i>',
            nextText : '<i class="fa fa-chevron-right"></i>',
            onSelect : function(selectedDate) {
                $('#startdate').datepicker('option', 'maxDate', selectedDate);
            }
        });
    }
</script>




